import request from '@/utils/request'

/**
 * @desc 新增标签
 */
export function addTag(params) {
  return request({
    url: '/business_admin/tags/add',
    method: 'post',
    params: params
  })
}

/**
 * @desc 标签列表
 */
export function removeTag(params) {
  return request({
    url: '/business_admin/tags/remove',
    method: 'delete',
    params: params
  })
}

/**
 * @desc 标签列表
 */
export function tagsList() {
  return request({
    url: '/business_admin/tags/list',
    method: 'get'
  })
}

/**
 * @desc 门店列表
 */
export function tagShopList(data) {
  return request({
    url: '/business_admin/tags/shop_list',
    method: 'post',
    data
  })
}

/**
 * @desc 新增门店标签
 */
export function addShopTag(data) {
  return request({
    url: '/business_admin/tags/shop_tag_add',
    method: 'post',
    data
  })
}

/**
 * @desc 移除门店标签
 */
export function removeShopTag(data) {
  return request({
    url: '/business_admin/tags/shop_tag_remove',
    method: 'post',
    data
  })
}

